<div ng-init="init();" class="kmi-layout-content SMT03-content" ng-class="LevelPhaseStatus()" ng-click="$root.disapearShowAlert()">
    <div class="kmi-header-row">
        <div class="kmi-side-btn left ng_prev" ng-click="back();">
            <i class="material-icons">&#xE408;</i>
            <div class="kmi-can-click"></div>
        </div>
        <div class="kmi-side-btn left init-none ng_next" ng-click="prevPage();">
            <i class="material-icons">&#xE408;</i>
            <div class="kmi-can-click"></div>
        </div>
        <div class="header-title ng_prev" ng-bind="'SMT03.title' | translate"></div>
        <div class="header-title init-none ng_next" ng-bind="'SMT03.title_two' | translate"></div>
    </div>
    <div class="kmi-layout-main-content">
        <!-- 基本資料 data -->
        <div class="kmi-row-fields data">
            <!-- 使用者資料 data_user -->
            <div class="column-item left data_user">
                <img src="image/icons/person.png"></img> 
                <label ng-bind="user_name"></label>
            </div>
            <!-- 環境資料 data_environment -->
            <div class="column-item right data_environment">
                <label ng-bind="('home.env' | translate) + envInfo"></label>
            </div>
        </div>
        <!-- 主要流程 process -->
        <div class="process">
            <div class="process_model" ng-repeat-start="phase in phases"
                ng-click="BackToPhase($index)" ng-class="PhaseStatus($index)">
                <label class="process_item" ng-bind="'SMT03.'+phase | translate" ></label>
            </div>
            <i class="material-icons process_arrowIcons" ng-repeat-end ng-if="!$last">keyboard_arrow_right</i>
        </div>
        <!-- 搜尋掃描欄 qr-code -->
        <div class="kmi-row-fields barcode_content qr-code" id="input_barcode">
            <img src="image/icons/search.png"></img> 
            <!-- <input class="qr-code_input" mdl-barcode="input_barcode(barcode)"/> -->
            <input class="barcode_input value input_plot" readonly="readonly"
                ng-keypress="input_PDA_barcode($event);" ng-model="barcode" hidekeyboard="true" />
            <div class="qr-code_icon" ng-click="QRCodeScanner();">
                <img src="image/icons/QRCode.png">
            </div>
        </div>
        <!-- 主要內容 SMT03_main -->
        <!-- init-none 預設消失 -->
        <div class="SMT03_main">
            <div class="kmi-row-fields main_fields">
                <div class="column-item">
                    <!-- 設備編號 machine_no -->
                    <label class="label main_item ng_prev" ng-bind="'SMT03.list.machine_no' | translate"></label>
                    <label class="value ng_prev" ng-bind="machine_no"></label>
                    <!-- Feeder(編號) feeder_no -->
                    <label class="label main_item init-none ng_next" ng-bind="'SMT03.list2.feeder_no' | translate"></label>
                    <label class="value init-none ng_next" ng-bind="feeder_no"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <div class="column-item">
                    <!-- 設備狀態 machine_state -->
                    <label class="label main_item ng_prev" ng-bind="'SMT03.list.machine_state' | translate"></label>
                    <label class="value ng_prev" ng-bind="'SMT.common.state.s_' + machine_state | translate"></label>
                    <!-- Feeder狀態 feeder_state -->
                    <label class="label main_item init-none ng_next" ng-bind="'SMT03.list2.feeder_state' | translate"></label>
                    <label class="value init-none ng_next" ng-bind="'SMT.common.state.s_' + feeder_state | translate"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <div class="column-item">
                    <!-- 生產批號 plot_no -->
                    <label class="label main_item ng_prev" ng-bind="'SMT03.list.plot_no' | translate"></label>
                    <label class="value ng_prev" ng-bind="plot_no"></label>
                    <!-- 物料批 material_no -->
                    <label class="label main_item init-none ng_next" ng-bind="'SMT03.list2.material_no' | translate"></label>
                    <label class="value init-none ng_next" ng-bind="material_no"></label>
                </div>
            </div>
            <!-- 物料製造日 -->
            <div class="kmi-row-fields main_fields init-none ng_next">
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT01.list.mfg_date' | translate"></label>
                    <label class="value" ng-bind="mfg_date"></label>
                </div>
            </div>
            <!-- 物料過期日 -->
            <div class="kmi-row-fields main_fields init-none ng_next">
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT01.list.exp_date' | translate"></label>
                    <label class="value" ng-bind="exp_date"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <div class="column-item">
                    <!-- (生產批)品號 plot_product_no -->
                    <label class="label main_item ng_prev" ng-bind="'SMT03.list.product_no' | translate"></label>
                    <label class="value ng_prev" ng-bind="plot_product_no"></label>
                    <!-- (物料批)品號  material_product_no -->
                    <label class="label main_item init-none ng_next" ng-bind="'SMT03.list2.product_no' | translate"></label>
                    <label class="value init-none ng_next" ng-bind="material_product_no"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <div class="column-item">
                    <!-- (生產批)規格 plot_item_spec -->
                    <label class="label main_item ng_prev" ng-bind="'SMT03.list.item_spec' | translate"></label>
                    <label class="value ng_prev" ng-bind="plot_item_spec"></label>
                    <!-- (物料批)規格  material_item_spec -->
                    <label class="label main_item init-none ng_next" ng-bind="'SMT03.list2.item_spec' | translate"></label>
                    <label class="value init-none ng_next" ng-bind="material_item_spec"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <div class="column-item">
                    <!-- 料站表(編號) feederlist_no   -->
                    <label class="label main_item ng_prev" ng-bind="'SMT03.list.feederlist_no' | translate"></label>
                    <label class="value ng_prev" ng-bind="feederlist_no"></label>
                    <!-- 料站 slot_no -->
                    <label class="label main_item init-none ng_next" ng-bind="'SMT03.list2.slot_no' | translate"></label>
                    <!--label class="value init-none ng_next" ng-bind="slot_no"></label>-->
                    <input class="value init-none ng_next" readonly="readonly"  style="flex:0 0 150px;" ng-model="select_slot_no" ng-click="loadSlot();"></input>
                    <div class="tip init-none ng_next"><i class="material-icons">&#xE5CF;</i></div>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <div class="column-item">
                    <!-- (料站表)版號 feederlist_ver -->
                    <label class="label main_item ng_prev" ng-bind="'SMT03.list.feederlist_ver' | translate"></label>
                    <input class="value ng_prev" readonly="readonly" style="flex:0 0 150px;" ng-model="feederlist_ver" ng-click="loadFeederList();"></input>
                    <div class="tip"><i class="material-icons">&#xE5CF;</i></div>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <div class="column-item">
                    <!-- 正背版 -->
                    <label class="label main_item ng_prev" ng-bind="'SMT02.panel.title' | translate"></label>
                    <input class="value ng_prev" readonly="readonly"  style="flex:0 0 150px;" ng-model="panel_name" ng-click="loadPanel();"></input>
                    <div class="tip"><i class="material-icons">&#xE5CF;</i></div>
                </div>
            </div>
        </div>
        <!-- 關閉按鈕 & 確定按鈕 & 上一頁按鈕 & 檢查按鈕 -->
        <div class="kmi-mobile__btn-content" style="justify-content: space-around; display: flex;">
            <button class="kmi-button__mobile ng_prev" ng-click="back();">
                <label ng-bind="'SMT03.close' | translate"></label>
                <div class="kmi-can-click"></div>
            </button>
            <button class="kmi-button__mobile ng_prev" ng-click="nextPage();">
                <label ng-bind="'SMT03.confirm' | translate"></label>
                <div class="kmi-can-click"></div>
            </button>
            <button class="kmi-button__mobile init-none ng_next" style="margin: 0px 20px" ng-click="prevPage();">
                <label ng-bind="'SMT03.prev_page' | translate"></label>
                <div class="kmi-can-click"></div>
            </button>
            <button class="kmi-button__mobile init-none ng_next" style="margin: 0px 20px" ng-click="check();">
                <label ng-bind="'SMT03.check' | translate"></label>
                <div class="kmi-can-click"></div>
            </button>
        </div>
    </div>
</div>
